package com.moviesearch.elastic7.controller;

import com.moviesearch.elastic7.model.Filmresources;
import com.moviesearch.elastic7.service.MysqlService;

import com.moviesearch.elastic7.util.ResultUitl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class MysqlController {
    @Resource
    private MysqlService MysqlService;
    @RequestMapping("selectbyid")
    public ResultUitl mysqlSelectById(Integer id){
        Filmresources Filmresources = MysqlService.selectById(id);
        return new ResultUitl(Filmresources,null,"success","01");
    }
}
